<!--

function initplayer(){
	var playerX = document.getElementById('player').offsetLeft;
	var playerY = document.getElementById('player').offsetTop;
	document.getElementById('player').initX = playerX;
	document.getElementById('player').initY = playerY;
}

function loadFlv(flvUrl,id,thisTitle,thisAuthor,width,height){

	HideContent('tags');

	var playerEmbedCode = '';

	if(flvUrl.substring(7,12)=='cache') {

		playerEmbedCode += '<p>';
				
		var videoId = flvUrl.substring(48);
	
		playerEmbedCode += '<object width=\"'+width+'\" height=\"'+height+'\"><param name=\"movie\" value=\"http://www.youtube.com/v/9m3jLOCSEsE&hl=en\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/'+videoId+'&hl=en&autoplay=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"'+width+'\" height=\"'+height+'\"></embed></object>';
		playerEmbedCode += '</p>';

		playerEmbedCode += '<a href=\"javascript:ReverseTagsDisplay(\'tags\',\''+id+'\',\''+thisAuthor+'\');\"><div id=\"tags_link\">tags</div></a>';

		document.getElementById('player').innerHTML = playerEmbedCode;

	} else {

		playerEmbedCode += '<p id=\'flvplayer\'></p>';
	
		playerEmbedCode += '<a href=\"javascript:ReverseTagsDisplay(\'tags\',\''+id+'\',\''+thisAuthor+'\');\"><div id=\"tags_link\">tags</div></a>';

		document.getElementById('player').innerHTML = playerEmbedCode;

		var s = new SWFObject("mediaplayer.swf", "flvplayer1", width, height, "9", "#000000");
		s.addParam('allowscriptaccess','always');
		s.addParam('allowfullscreen','true');
		s.addVariable('backcolor','0x333333');
		s.addVariable('frontcolor','0xEEEEEE');
		s.addVariable('lightcolor','0xFF9900');
		s.addVariable('screencolor','0x000000');
		s.addVariable("file",flvUrl);
		s.addVariable("autostart","true");
		s.write("flvplayer");
	}




}

//-->